package com.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author wty
 * @since 2021-11-27
 */
@Data
@Accessors(chain = true)
@TableName("shares_gd_change")
public class SharesGdChange extends Model<SharesGdChange> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String code;
    private String name;
    @TableField("avg_freeshares_ratio")
    private String avgFreesharesRatio;//较上期变化(%)
    @TableField("avg_free_shares")
    private String avgFreeShares;//人均流通股(股)
    @TableField("avg_hold_amt")
    private String avgHoldAmt;//人均持股金额(元)
    @TableField("end_date")
    private String endDate;//END_DATE
    @TableField("freehold_ratio_total")
    private String freeholdRatioTotal;
    @TableField("holder_total_num")
    private String holderTotalNum;//股东人数(户)
    @TableField("hold_focus")
    private String holdFocus;//筹码集中度
    @TableField("hold_ratio_total")
    private String holdRatioTotal;
    private String price;//股价(元)
    @TableField("total_num_ratio")
    private String totalNumRatio;//较上期变化(%)

    @TableField(exist = false)
    private String type;


    /**
     * 股价期间的涨幅
     */
    @TableField(exist = false)
    private String zf;
    @TableField(exist = false)
    private String sz;
    @TableField(exist = false)//上次的价格
    private String sprice;
    @TableField(exist = false)//上次的价格
    private String shsz;//上次的户市值
    @TableField(exist = false)//上次的价格
    private String gdrs;//上次的股东人数
    @TableField(exist = false)//上次的价格
    private String gdrsms;//上次的股东ms
    @TableField(exist = false)//上次的价格
    private long days;//上次的股东ms



    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
